<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3D</title>
</head>

<body>
    <div class="A"><img src="./images/Error.png" alt=""></div>
    <div class="B"><img src="./images/Error.png" alt=""></div>
    <div class="play-ground">
        <div class="ball"></div>
    </div>
    <style>
        body {
            width: 600px;
            margin: auto;
        }

        .A:hover {
            transform: rotateY(60deg);
            transform-style: preserve-3d;
            transition: 1s all;
        }

        .B {
            perspective: 1000;
        }

        .play-ground {
            width: 600px;
            height: 300px;
            border: 1px solid rebeccapurple;
            position: relative;
        }

        .ball {
            background-color: #39C5BB;
            border-radius: 50%;
            position: absolute;
            animation: ball 4s infinite;
        }

        @keyframes ball {
            form {
                width: 50px;
                height: 50px;
                left: 30px;
                top: 130px;
            }

            20% {
                width: 25px;
                height: 25px;
                left: 130px;
                top: 20px;
            }

            50% {
                width: 100px;
                height: 100px;
                left: 230px;
                top: 100px;
            }

            73% {
                width: 100px;
                height: 100px;
                left: 360px;
                top: 200px;
            }

            100% {
                width: 150px;
                height: 150px;
                left: 420px;
                top: 70px;
            }
        }
    </style>
</body>

</html>